home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5929 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 62 6c | 61 63 6b 2e 77 65 65 67 |Path: bl|ack.weeg|
|00000010| 2e 75 69 6f 77 61 2e 65 | 64 75 21 72 6f 62 69 6e |.uiowa.e|du!robin|
|00000020| 73 6f 6e 0a 46 72 6f 6d | 3a 20 54 68 65 20 41 6d |son.From|: The Am|
|00000030| 6f 72 70 68 6f 75 73 20 | 4d 61 73 73 20 3c 72 6f |orphous |Mass <ro|
|00000040| 62 69 6e 73 6f 6e 40 62 | 6c 75 65 2e 77 65 65 67 |binson@b|lue.weeg|
|00000050| 2e 75 69 6f 77 61 2e 65 | 64 75 3e 0a 4e 65 77 73 |.uiowa.e|du>.News|
|00000060| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 6c 61 6e |groups: |comp.lan|
|00000070| 67 2e 63 0a 53 75 62 6a | 65 63 74 3a 20 52 65 3a |g.c.Subj|ect: Re:|
|00000080| 20 45 61 73 69 65 73 74 | 20 77 61 79 20 74 6f 20 | Easiest| way to |
|00000090| 63 65 6e 74 65 72 20 61 | 20 73 74 72 69 6e 67 3f |center a| string?|
|000000a0| 0a 44 61 74 65 3a 20 57 | 65 64 2c 20 32 31 20 46 |.Date: W|ed, 21 F|
|000000b0| 65 62 20 31 39 39 36 20 | 31 38 3a 33 35 3a 32 39 |eb 1996 |18:35:29|
|000000c0| 20 2d 30 36 30 30 0a 4f | 72 67 61 6e 69 7a 61 74 | -0600.O|rganizat|
|000000d0| 69 6f 6e 3a 20 55 6e 69 | 76 65 72 73 69 74 79 20 |ion: Uni|versity |
|000000e0| 6f 66 20 49 6f 77 61 2c | 20 49 6f 77 61 20 43 69 |of Iowa,| Iowa Ci|
|000000f0| 74 79 2c 20 49 41 2c 20 | 55 53 41 0a 44 69 73 74 |ty, IA, |USA.Dist|
|00000100| 72 69 62 75 74 69 6f 6e | 3a 20 77 6f 72 6c 64 0a |ribution|: world.|
|00000110| 4d 65 73 73 61 67 65 2d | 49 44 3a 20 3c 50 69 6e |Message-|ID: <Pin|
|00000120| 65 2e 41 33 32 2e 33 2e | 39 31 2e 39 36 30 32 32 |e.A32.3.|91.96022|
|00000130| 31 31 35 35 31 33 36 2e | 31 39 33 38 38 37 41 40 |1155136.|193887A@|
|00000140| 72 65 64 2e 77 65 65 67 | 2e 75 69 6f 77 61 2e 65 |red.weeg|.uiowa.e|
|00000150| 64 75 3e 0a 4e 4e 54 50 | 2d 50 6f 73 74 69 6e 67 |du>.NNTP|-Posting|
|00000160| 2d 48 6f 73 74 3a 20 62 | 6c 61 63 6b 2e 77 65 65 |-Host: b|lack.wee|
|00000170| 67 2e 75 69 6f 77 61 2e | 65 64 75 0a 4d 69 6d 65 |g.uiowa.|edu.Mime|
|00000180| 2d 56 65 72 73 69 6f 6e | 3a 20 31 2e 30 0a 43 6f |-Version|: 1.0.Co|
|00000190| 6e 74 65 6e 74 2d 54 79 | 70 65 3a 20 54 45 58 54 |ntent-Ty|pe: TEXT|
|000001a0| 2f 50 4c 41 49 4e 3b 20 | 63 68 61 72 73 65 74 3d |/PLAIN; |charset=|
|000001b0| 55 53 2d 41 53 43 49 49 | 0a 58 2d 53 65 6e 64 65 |US-ASCII|.X-Sende|
|000001c0| 72 3a 20 72 6f 62 69 6e | 73 6f 6e 40 62 6c 61 63 |r: robin|son@blac|
|000001d0| 6b 2e 77 65 65 67 2e 75 | 69 6f 77 61 2e 65 64 75 |k.weeg.u|iowa.edu|
|000001e0| 0a 49 6e 2d 52 65 70 6c | 79 2d 54 6f 3a 20 3c 34 |.In-Repl|y-To: <4|
|000001f0| 67 66 38 6d 67 24 68 72 | 6d 40 61 69 72 64 6d 68 |gf8mg$hr|m@airdmh|
|00000200| 6f 72 2e 67 65 6e 2e 6e | 7a 3e 20 0a 0a 4f 6e 20 |or.gen.n|z> ..On |
|00000210| 32 32 20 46 65 62 20 31 | 39 39 36 2c 20 53 69 6d |22 Feb 1|996, Sim|
|00000220| 6f 6e 20 48 6f 73 69 65 | 20 77 72 6f 74 65 3a 0a |on Hosie| wrote:.|
|00000230| 0a 3e 20 53 69 6d 6f 6e | 20 48 6f 73 69 65 3a 0a |.> Simon| Hosie:.|
|00000240| 3e 20 3e 20 70 72 69 6e | 74 66 28 22 25 2a 73 5c |> > prin|tf("%*s\|
|00000250| 6e 22 2c 20 28 73 74 72 | 6c 65 6e 28 53 74 72 69 |n", (str|len(Stri|
|00000260| 6e 67 20 2d 20 4c 69 6e | 65 4c 65 6e 29 20 2f 20 |ng - Lin|eLen) / |
|00000270| 32 2c 20 53 74 72 69 6e | 67 29 3b 0a 3e 20 53 69 |2, Strin|g);.> Si|
|00000280| 6d 6f 6e 20 48 6f 73 69 | 65 3a 0a 3e 20 3e 20 20 |mon Hosi|e:.> > |
|00000290| 20 53 6f 72 72 79 2c 20 | 6d 61 6b 65 20 74 68 61 | Sorry, |make tha|
|000002a0| 74 3a 0a 3e 20 3e 20 70 | 72 69 6e 74 66 28 22 25 |t:.> > p|rintf("%|
|000002b0| 2a 73 5c 6e 22 2c 20 28 | 73 74 72 6c 65 6e 28 53 |*s\n", (|strlen(S|
|000002c0| 74 72 69 6e 67 20 2b 20 | 4c 69 6e 65 4c 65 6e 29 |tring + |LineLen)|
|000002d0| 29 20 2f 20 32 2c 20 53 | 74 72 69 6e 67 29 3b 0a |) / 2, S|tring);.|
|000002e0| 3e 20 0a 3e 20 20 20 49 | 66 20 74 68 69 73 20 6f |> .> I|f this o|
|000002f0| 6e 65 20 69 73 20 77 72 | 6f 6e 67 20 49 27 6d 20 |ne is wr|ong I'm |
|00000300| 6e 6f 74 20 63 6f 72 72 | 65 63 74 69 6e 67 20 6d |not corr|ecting m|
|00000310| 79 73 65 6c 66 20 61 67 | 61 69 6e 2c 20 49 20 70 |yself ag|ain, I p|
|00000320| 72 6f 6d 69 73 65 20 28 | 49 20 68 61 76 65 6e 27 |romise (|I haven'|
|00000330| 74 0a 3e 20 62 65 65 6e | 20 67 65 74 74 69 6e 67 |t.> been| getting|
|00000340| 20 65 6e 6f 75 67 68 20 | 73 6c 65 65 70 2c 20 6f | enough |sleep, o|
|00000350| 6b 3f 29 2e 2e 0a 3e 20 | 0a 3e 20 70 72 69 6e 74 |k?)...> |.> print|
|00000360| 66 28 22 25 2a 73 5c 6e | 22 2c 20 28 73 74 72 6c |f("%*s\n|", (strl|
|00000370| 65 6e 28 53 74 72 69 6e | 67 29 20 2b 20 4c 69 6e |en(Strin|g) + Lin|
|00000380| 65 4c 65 6e 29 20 2f 20 | 32 2c 20 53 74 72 69 6e |eLen) / |2, Strin|
|00000390| 67 29 3b 0a 0a 20 20 53 | 69 6e 63 65 20 49 20 68 |g);.. S|ince I h|
|000003a0| 61 76 65 20 6d 61 6e 61 | 67 65 64 20 74 6f 20 6d |ave mana|ged to m|
|000003b0| 61 6b 65 20 61 20 63 6f | 6d 70 6c 65 74 65 20 66 |ake a co|mplete f|
|000003c0| 6f 6f 6c 20 6f 75 74 20 | 6f 66 20 6d 79 73 65 6c |ool out |of mysel|
|000003d0| 66 20 6f 6e 20 74 68 69 | 73 20 0a 74 68 72 65 61 |f on thi|s .threa|
|000003e0| 64 20 70 72 65 76 69 6f | 75 73 6c 79 20 28 74 68 |d previo|usly (th|
|000003f0| 61 6e 6b 73 20 74 6f 20 | 54 61 6e 6d 6f 79 20 61 |anks to |Tanmoy a|
|00000400| 6e 64 20 4c 61 77 72 65 | 6e 63 65 20 66 6f 72 20 |nd Lawre|nce for |
|00000410| 62 65 69 6e 67 20 73 6f | 20 69 6e 64 75 6c 67 65 |being so| indulge|
|00000420| 6e 74 2c 20 0a 61 6e 64 | 20 6d 79 20 61 70 6f 6c |nt, .and| my apol|
|00000430| 6f 67 69 65 73 20 74 6f | 20 53 69 6d 6f 6e 20 66 |ogies to| Simon f|
|00000440| 6f 72 20 62 65 69 6e 67 | 20 63 6f 6d 70 6c 65 74 |or being| complet|
|00000450| 65 6c 79 20 77 72 6f 6e | 67 20 69 6e 20 6d 79 20 |ely wron|g in my |
|00000460| 63 72 69 74 69 71 75 65 | 29 2c 20 49 20 77 69 6c |critique|), I wil|
|00000470| 6c 20 0a 74 68 69 6e 6b | 20 74 68 69 73 20 72 65 |l .think| this re|
|00000480| 73 70 6f 6e 73 65 20 74 | 68 72 6f 75 67 68 20 5f |sponse t|hrough _|
|00000490| 76 65 72 79 5f 20 63 61 | 72 65 66 75 6c 6c 79 2e |very_ ca|refully.|
|000004a0| 20 20 41 73 20 4c 61 77 | 72 65 6e 63 65 20 70 6f | As Law|rence po|
|000004b0| 69 6e 74 65 64 20 6f 75 | 74 2c 20 0a 79 6f 75 20 |inted ou|t, .you |
|000004c0| 6e 65 65 64 20 74 6f 20 | 63 61 73 74 20 74 68 61 |need to |cast tha|
|000004d0| 74 20 65 78 70 72 65 73 | 73 69 6f 6e 20 74 6f 20 |t expres|sion to |
|000004e0| 69 6e 74 2c 20 62 65 63 | 61 75 73 65 20 70 72 69 |int, bec|ause pri|
|000004f0| 6e 74 66 28 29 20 65 78 | 70 65 63 74 73 20 61 6e |ntf() ex|pects an|
|00000500| 20 69 6e 74 20 0a 61 6e | 64 20 6e 6f 74 20 61 20 | int .an|d not a |
|00000510| 73 69 7a 65 5f 74 20 28 | 77 68 69 63 68 20 6d 69 |size_t (|which mi|
|00000520| 67 68 74 20 6e 6f 74 20 | 66 69 74 20 69 6e 74 6f |ght not |fit into|
|00000530| 20 61 6e 20 69 6e 74 29 | 2e 20 20 53 6f 20 75 73 | an int)|. So us|
|00000540| 65 0a 0a 20 20 20 70 72 | 69 6e 74 66 28 22 2a 73 |e.. pr|intf("*s|
|00000550| 5c 6e 22 2c 20 28 69 6e | 74 29 28 28 73 74 72 6c |\n", (in|t)((strl|
|00000560| 65 6e 28 53 74 72 69 6e | 67 29 20 2b 20 4c 69 6e |en(Strin|g) + Lin|
|00000570| 65 4c 65 6e 29 20 2f 20 | 32 29 2c 20 53 74 72 69 |eLen) / |2), Stri|
|00000580| 6e 67 29 3b 0a 0a 61 6e | 64 20 79 6f 75 27 72 65 |ng);..an|d you're|
|00000590| 20 68 6f 6d 65 20 66 72 | 65 65 2e 0a 0a 20 2d 2d | home fr|ee... --|
|000005a0| 4a 61 6d 65 73 20 52 6f | 62 69 6e 73 6f 6e 20 28 |James Ro|binson (|
|000005b0| 72 6f 62 69 6e 73 6f 6e | 40 63 73 2e 75 69 6f 77 |robinson|@cs.uiow|
|000005c0| 61 2e 65 64 75 20 2d 6f | 72 2d 20 6a 61 6d 65 73 |a.edu -o|r- james|
|000005d0| 2d 72 6f 62 69 6e 73 6f | 6e 40 75 69 6f 77 61 2e |-robinso|n@uiowa.|
|000005e0| 65 64 75 29 0a 2f 2a 20 | 20 20 49 6e 64 65 65 64 |edu)./* | Indeed|
|000005f0| 2c 20 43 2b 2b 20 69 73 | 20 61 20 62 69 74 20 6f |, C++ is| a bit o|
|00000600| 66 20 61 6e 20 6f 64 64 | 62 61 6c 6c 20 6f 66 20 |f an odd|ball of |
|00000610| 61 20 6c 61 6e 67 75 61 | 67 65 20 2e 2e 2e 20 67 |a langua|ge ... g|
|00000620| 69 76 65 6e 20 74 68 65 | 20 77 61 79 20 74 68 61 |iven the| way tha|
|00000630| 74 20 2a 0a 20 2a 20 69 | 74 20 72 65 71 75 69 72 |t *. * i|t requir|
|00000640| 65 73 20 70 72 69 76 61 | 74 65 20 70 61 72 74 73 |es priva|te parts|
|00000650| 20 74 6f 20 62 65 20 76 | 69 73 69 62 6c 65 2e 20 | to be v|isible. |
|00000660| 20 54 68 69 73 20 69 6e | 63 72 65 61 73 65 73 20 | This in|creases |
|00000670| 74 68 65 20 73 74 72 65 | 6e 67 74 68 20 6f 66 20 |the stre|ngth of |
|00000680| 20 2a 0a 20 2a 20 63 6f | 75 70 6c 69 6e 67 20 64 | *. * co|upling d|
|00000690| 72 61 6d 61 74 69 63 61 | 6c 6c 79 2e 2e 2e 20 20 |ramatica|lly... |
|000006a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006b0| 20 20 20 20 20 2d 2d 20 | 44 72 2e 20 52 69 63 68 | -- |Dr. Rich|
|000006c0| 20 41 72 74 79 6d 20 20 | 20 20 20 20 20 20 20 20 | Artym | |
|000006d0| 2a 2f 0a 0a 0a | |*/... | |
+--------+-------------------------+-------------------------+--------+--------+